package com.yfyszk.kingbird.feign;

import com.yfyszk.kingbird.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/** rug
 * @ClassName UserFeignClient
 * @Description: TODO
 * @Author wgc
 * @Date 2020/12/23 15:25
 * @Version V1.0
 **/
@FeignClient(path = "/testUser",name="ysyfzk-user", fallbackFactory =MemberServiceFallbackFactory.class)
public interface UserFeignClient {
    @RequestMapping("/getUser")
    public String getUser(@RequestParam("name") String name);
    @RequestMapping("/getUserOrder")
    public String getUserOrder(@RequestParam("orderId") String orderId);
    //根据订单id查询用户信息
    @RequestMapping("/getUserByOrderId")
    public R getUserByOrderId(@RequestParam("orderId") String orderId);


}
